home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / LIB211.ZIP;1 / SEARCH.TXT < prev    next >
Encoding:
Text File  |  1993-12-14  |  1.4 KB  |  35 lines

  1. SEARCH.TXT -- explanation out of the file SEARCH.ASM for the SEARCH.BIN
  2. file, by Roland Bourcherau (Borland Technical Support).
  3.  
  4. NOTE: SEARCH.ZIP in the dBASE forum on CompuServe contains the .ASM
  5. file, for those who may be interested in the source code.
  6.  
  7. SEARCH.BIN uses DOS' find first and find next functions for getting info
  8. about files matching a wildcard specification and possibly an attribute 
  9. mask. Can be called with up to six parameters, or at least two.  The 
  10. first parameter is necessary to indicate the search mode; either to
  11. find the first file (indicated by a 1) or to find subsequent files 
  12. (indicated by anything other than a 1). The second parameter is a 
  13. filename or wild card string.
  14.  
  15. parameter 1: Call type (1 for first call).
  16. parameter 2: Wildcard specification.
  17. parameter 3: Attribute mask.      (Optional)
  18. parameter 4: Receives file date.
  19. parameter 5: Receives file time.
  20. parameter 6: Receives file size.
  21.  
  22. Example:     . LOAD Search
  23.              . ? CALL("Search",1,"*.dbf       ")     && Two parms.
  24.              0
  25.  
  26.              . fspec = "SQLHOME\*.* "
  27.              . fattr = "D     "              && Include directories!
  28.              . fdate = "  /  /  "            && Avoid bug.
  29.              . ftime = "  :  :  "
  30.              . fsize = 0
  31.              . CALL Search WITH 1,fspec,fattr,fdate,ftime,fsize
  32.              . ? fspec,fsize
  33.              SQLDBASE.STR        194
  34.  
  35.